package com.ymtms.applicationsystem.dao;

import com.ymtms.applicationsystem.pojo.Wage;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface WageMapper {
    int deleteByPrimaryKey(Integer wid);

    int insert(Wage record);

    int insertSelective(Wage record);

    Wage selectByPrimaryKey(Integer wid);

    int updateByPrimaryKeySelective(Wage record);

    int updateByPrimaryKey(Wage record);

    List<Wage> selectWagesAll(String empWageSeekInfo);

    @Update("update wages set flag = 1  where wid = #{wid} ")
    int wageDelSoft(Integer wid);
    @Select("select employee_name from emp_information where employee_code = #{employeeCode} ")
    String selectNameByCode(String employeeCode);
}